Skip to content

Draft: Added scheduler. To be implemented: index update functionality.#5

Open
yancharskaya wants to merge 3 commits intomainfrom
scheduler
Open

Draft: Added scheduler. To be implemented: index update functionality.#5
yancharskaya wants to merge 3 commits intomainfrom
scheduler

Conversation

@yancharskaya
Copy link
Copy Markdown

No description provided.

@yancharskaya yancharskaya changed the title Added scheduler. To be implemented: index update functionality. Draft: Added scheduler. To be implemented: index update functionality. Oct 19, 2023
Comment thread scheduler.py Outdated
old_content = file.read()

# Запускаем пайплайн. Если новые видео будут найдены, в файл добавятся их url-ы
subprocess.run(['python', r'data_pipelines/run_module.py'])
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

run_module.py? Пайплайн скачивания, транскрибации новых видео и добавления их текстов в индекс запускается в "data_pipelines/index_pipeline.py"

Comment thread scheduler.py Outdated
stop_bot() # Сначала останавливаем бот

# Тут нужно обновить индексы
# os.system("git pull") # Обновляем код
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Опять же, к этому моменту индекс уже сохранен после отрабатывания "data_pipelines/index_pipeline.py".
И тем более не нужно делать git pull

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants